<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
  <title>密码框可见操作</title>
  <link rel="stylesheet" href="13-password.css">
  <link rel="icon" href="https://cdn.jsdelivr.net/gh/wangding/i@master/favicon.ico" sizes="48x48" type="image/png">
</head>

<body>
  <div class="main">密码： <input id="pwd" type="password" autofocus>
    <div id="eye"></div><input class="pwd-text">
  </div>
</body>
<script src="//apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
<script src="13-password.js"></script>

</html>